/**
 * Auto gen via dbpojo-gen.
 */
package com.us.usws.service.cud.impl;

import com.us.usws.dao.SysObjDAO;
import com.us.usws.model.flat.system.DOSysObj;
import com.us.usws.service.cud.SysObjCUDService;

/**
 * Service RO impl class
 * @author robot
 */
public class SysObjCUDServiceImpl implements SysObjCUDService {

	/**
	 * DAO instance
	 */
	private SysObjDAO dao = new SysObjDAO();

	/**
	 * Insert one row.
	 */
	public int addSysObj(DOSysObj sysObj) {
		return dao.inserObj(sysObj);
	}

	/**
	 * Update by PK.
	 */
	public void updateSysObj(DOSysObj sysObj) {
		dao.updateSysObj(sysObj);
	}

	/**
	 * Update is valid flag by PK.
	 */
	public void updateIsValid(String isValid, Integer id) {
		dao.updateIsValid(isValid, id);
	}

	/**
	 * Delete row by PK.
	 */
	public void deleteSysObj(Integer id) {
		dao.deleteObj(id);
	}

	@Override
	public void updateIsValid(Integer id, String isValid) {
		dao.updateIsValid(isValid, id);
	}

}